import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 06 - 02
 * Time: 19:52
 */
class Student{
    private String name;
    private String gender;
    private static String classRoom;
    //实例代码块
    {
        this.name = "ZhangSan";
        this.gender = "man";
        System.out.println("instance");
    }
    // 静态代码块
    static {
        classRoom = "4";
        System.out.println("static");
    }
    public Student(){
        System.out.println("Student init");
    }
    public static void main(String[] args) {
        Student s1 = new Student();
        Student s2 = new Student();
    }
}
